/*
 * =====================================================================================
 *
 *       Filename:  check.c
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  2010年04月17日 01时43分45秒
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Haicheng Wu (hwu), hwu36@gatech.edu
 *        Company:  Georgia Institue of Technology
 *
 * =====================================================================================
 */
#include <stdlib.h>
#include <stdio.h>

void checkUB(int index, int bound) {
  if (index >= bound) fprintf(stderr, "Exceed upper bound!\n");
}

void checkLB(int index, int bound) {
  if (index < bound) fprintf(stderr, "Exceed lower bound!\n");
}
